// var $app = "http://47.104.96.161:8889/api/v1";
var $app = "http://192.168.9.237:8889/api/v1";
// var $app = "http://192.168.9.101:8080/api/v1";
function common_ajaxs(url,data,callback_true,callback_false){
    // debugger;
    $.ajax({
        type: 'post',
        url: $app+url,
        data: JSON.stringify(data),
        async:false,
        dataType: 'json',
        contentType: 'application/json;charset=UTF-8',
        success:function (res) {
            callback_true(res);
        },
        error:function (res) {
            callback_false(res);
        }
    });
}
function common_ajax(url,data,callback_true,callback_false){
    // debugger;
    $.ajax({
        type: 'post',
        url: $app+url,
        data: JSON.stringify(data),
        dataType: 'json',
        contentType: 'application/json;charset=UTF-8',
        success:function (res) {
            callback_true(res);
        },
        error:function (res) {
            callback_false(res);
        }
    });
}
function getAjax(url,callback_true,callback_false){
    $.ajax({
        type: 'get',
        url: $app+url,
        dataType: 'json',
        contentType: 'application/json;charset=UTF-8',
        success:function (res) {
            callback_true(res);
        },
        error:function (res) {
            callback_false(res);
        }
    });

}
